
#include <Unit.h>
	
Unit::Unit(int factorToBase):factorToBase_m(factorToBase)
{
}
int Unit::toAmountInBaseUnit(const int value) const
{
	return value*factorToBase_m;
}
int Unit::covertFromBaseUnit(int value) const
{
	return value/factorToBase_m;
}
